package com.tyk.bookstore.back.product.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 出版社异常枚举
 */
public enum PublisherResultEnum implements ResultEnum {

    PUBLISHER_NOT_FOUND(3_05_03_01, "出版社不存在"),
    PUBLISHER_ALREADY_EXISTS(3_05_03_02, "出版社已存在"),
    PART_PUBLISHER_ALREADY_EXISTS(3_05_03_03, "部分出版社已存在"),
    PUBLISHER_HAS_BOOK(3_05_03_04, "书店仍存在该出版社的书籍");

    private final String msg;
    private final Integer code;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    PublisherResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
